/* Copyright 2010 John L. Reilly

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */

package com.riq.entity;

import java.io.Serializable;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;


@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Department implements HasPrimaryKey<String>, Serializable {
  
  private static final long serialVersionUID = 1L;
  
  public String getPrimaryKey() {
	    // TODO Auto-generated method stub
	    return null;
	  }
  
  @PrimaryKey
  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
  private Long id;

  @Persistent
  private String shortName;
  
  @Persistent
  private String longName;
  
  @Persistent
  private String type;
  
  @Persistent
  private String fromEmail;
  
  @Persistent
  private String trackingFlag;
  
  @Persistent
  private double coordinatesLatitude; 
  
  @Persistent
  private double coordinatesLongitude;
  
  @Persistent
  private long distGroupA;
  
  @Persistent
  private long distGroupB;
  
  @Persistent
  private long distGroupC;
  
  @Persistent
  private long distMaxAge;
  
  @Persistent
  private String dispatchId;
  
  @Persistent
  private String username;
  
  @Persistent
  private String password;
  
  @Persistent
  private String mutualAid;
  
  @Persistent
  private String inboundVRU1;
  
  @Persistent
  private String inboundVRU2;
  
  @Persistent
  private String inboundVRU3;
  
  public Department(String shortName, String longName, String type, String fromEmail, 
            String trackingFlag, double coordinatesLatitude, double coordinatesLongitude,
            long distGroupA, long distGroupB, long distGroupC, long distMaxAge, 
            String dispatchId, String username, String password, String mutualAid,
            String inboundVRU1, String inboundVRU2, String inboundVRU) {
               
               this.shortName = shortName;
               this.longName = longName;
               this.type = type;  
               this.fromEmail = fromEmail;
               this.trackingFlag = trackingFlag;
               this.coordinatesLatitude = coordinatesLatitude;
               this.coordinatesLongitude = coordinatesLongitude;
               this.distGroupA = distGroupA;
               this.distGroupB = distGroupB;
               this.distGroupC = distGroupC;
               this.distMaxAge = distMaxAge;
               this.dispatchId = dispatchId;
               this.username = username;
               this.password = password;
               this.mutualAid = mutualAid;
               this.inboundVRU1 = inboundVRU1;
               this.inboundVRU2 = inboundVRU2;
               this.inboundVRU3 = inboundVRU3;
              }
  
// GETS
  
  public Long getid() {
    return id;
  }

  public String getshortName() {
    return shortName;
  }

  public String getlongName() {
    return longName;
  }
  
  public String gettype() {
    return type;
  }
  
  public String getfromEmail() {
    return fromEmail;
  }
  
  public String gettrackingFlag() {
    return trackingFlag;
  }
  
  public double getcoordinatesLatitude() {
    return coordinatesLatitude;
  }
  
  public double getcoordinatesLongitude() {
    return coordinatesLongitude;
  }
  
  public long getdistGroupA() {
    return distGroupA;
  }
  
  public long getdistGroupB() {
    return distGroupB;
  }
  
  public long getdistGroupC() {
    return distGroupC;
  }
  
  public long getdistMaxAge() {
    return distMaxAge;
  }
  
  public String getdispatchId() {
    return dispatchId;
  }
  
  public String getusername() {
    return username;
  }
  
  public String getpassword() {
    return password;
  }
  
  public String getmutualAid() {
    return mutualAid;
  }
  
  public String getinboundVRU1() {
    return inboundVRU1; 
  }
  
  public String getinboundVRU2() {
    return inboundVRU2; 
  }
  
  public String getinboundVRU3() {
    return inboundVRU3; 
  }
  
// SETS  
  
  public void setshortName(String shortName) {
    this.shortName = shortName;
  }
  
  public void setlongName(String longName) {
    this.longName = longName;
  }
  
  public void settype(String type) {
    this.type = type;
  }
  
  public void setfromEmail(String fromEmail) {
    this.fromEmail = fromEmail;
  }
  
  public void settrackingFlag(String trackingFlag) {
     this.trackingFlag = trackingFlag;
  }
  
  public void setcoordinatesLatitude(double coordinatesLatitude) {
    this.coordinatesLatitude = coordinatesLatitude;
  }
  
  public void setcoordinatesLongitude(double coordinatesLongitude) {
    this.coordinatesLongitude = coordinatesLongitude;
  }
  
  public void setdistGroupA(long distGroupA) {
    this.distGroupA = distGroupA;
  }
  
  public void setdistGroupB(long distGroupB) {
    this.distGroupB = distGroupB;
  }
  
  public void setdistGroupC(long distGroupC) {
    this.distGroupC = distGroupC;
  }
  
  public void setdistMaxAge(long distMaxAge) {
    this.distMaxAge = distMaxAge;
  }
  
  public void setdispatchId(String dispatchId) {
    this.dispatchId = dispatchId;
  }
  
  public void setusername(String username) {
    this.username = username;
  }
  
  public void setpassword(String password) {
    this.password = password;
  }
  
  public void setmutualAid(String mutualAid) {
    this.mutualAid = mutualAid;
  }
   
  public void setinboundVRU1(String inboundVRU1) {
    this.inboundVRU1 = inboundVRU1;
  }
  
  public void setinboundVRU2(String inboundVRU2) {
	this.inboundVRU2 = inboundVRU2;
  }
  
  public void setinboundVRU3(String inboundVRU3) {
    this.inboundVRU3 = inboundVRU3;
  }

}